<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础模板</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <input type="text" v-model:value.trim.lazy.number="textVal"><br>
        <input type="checkbox" v-model="checksVal" value="上海">上海
        <input type="checkbox" v-model="checksVal" value="北京">北京
        <input type="checkbox" v-model="checksVal" value="广州">广州
        <input type="checkbox" v-model="checksVal" value="杭州">杭州<br>
        <input type="checkbox" v-model="checkTF">是否同意协议<br>
        <select name="fool" v-model="selectArr" multiple>
            <option value="麻婆豆腐">麻婆豆腐</option>
            <option value="开水白菜">开水白菜</option>
            <option value="回锅牛肉">回锅牛肉</option>
            <option value="水煮肉片">水煮肉片</option>
        </select>
        <select name="fool" v-model="selectVal">
            <option value="麻婆豆腐">麻婆豆腐</option>
            <option value="开水白菜">开水白菜</option>
            <option value="回锅牛肉">回锅牛肉</option>
            <option value="水煮肉片">水煮肉片</option>
        </select>
        <input type="radio" name="sex" v-model="sex" value="男">男
        <input type="radio" name="sex"v-model="sex" value="女">女
      <textarea v-model="textareaVal"></textarea>
    </div>

    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    textVal:'',
                    checksVal:[],
                    checkTF:true,
                    selectArr:['麻婆豆腐'],
                    selectVal:'',
                    sex:'男',
                    textareaVal:''

                }
            }
        })
    </script>
</body>

</html>